    <div class="row">
        <div class="col-xs-12">
            <form id="formTable" class="search" action="<literal>{:U(MODULE_NAME.'/</literal>{$TableName}<literal>/all')}</literal>" method="get">
                <div class="box box-info">
                    <div class="box-header">
                        <!-- <h3 class="box-title">搜索</h3> -->
                    </div>
                    <div class="box-body">
                        <div class="row">
                        	<volist name="searchFieldArr" id="vo"> 
                                <if condition="$vo['inType'] eq 'text'">
		                            <div class="form-group col-xs-2">
		                                <label>{$fieldAliasArr[$key]}：</label>
		                                <input name="{$key}" class="form-control" value="<literal>{$_GET['</literal>{$key}<literal>']}</literal>"/>
		                            </div>
                                <elseif condition="$vo['inType'] eq 'datetime'"/>
		                            <div class="form-group col-xs-2">
		                                <label>{$fieldAliasArr[$key]}：</label>
		                                <input class="form-control jcDate" type="text" autocomplete="off" name="t1" value="<literal>{$_GET['t1']}</literal>" readonly="readonly" onclick="SelectDate(this,'yyyy-MM-dd hh:mm:ss')">
		                            </div>
		                            <div class="form-group col-xs-2">
		                                <label>到</label>
		                                <input class="form-control jcDate" type="text" autocomplete="off" name="t2" value="<literal>{$_GET['t2']}</literal>" readonly="readonly" onclick="SelectDate(this,'yyyy-MM-dd hh:mm:ss')">
		                            </div>  
                                <elseif condition="$vo['inType'] eq 'select'"/>
		                            <div class="form-group col-xs-2">
		                                <label>{$fieldAliasArr[$key]}：</label> 
		                                <select name="{$key}"  class='form-control select2-list'>
		                                    <literal>	
		                                        <volist name=":func_search_select_data('</literal>{$moduleName}<literal>','</literal>{$TableName}<literal>','</literal>{$key}<literal>')" id="vv">
		                                    </literal>
		                                          <literal><option value="{$key}" <if condition="(!isset($_GET['</literal>{$key}<literal>']) AND ($i eq 1)) OR (isset($_GET['</literal>{$key}<literal>']) AND ($key eq $_GET['</literal>{$key}<literal>']))">selected="selected"</if>>{$vv}</option></literal>
		                                    <literal>		                                    
		                                        </volist>
		                                    </literal>		                                    
		                                </select>                                    
		                            </div>                                 		                            
                                </if>
                        	</volist>                            
                        </div>
                    </div><!-- /.box-body -->
                    <div class="box-footer">
                        <input type="hidden" name="optype" id="optype" value="query"/>                        	
                        <button type="submit" class="btn btn-primary" id="search_btn">查询</button>
						<a class="btn btn-success" href="<literal>{:U(MODULE_NAME.'/</literal>{$TableName}<literal>/add')}</literal>">添加</a>
                        <input type="submit" class="btn btn-info" id="export_btn" value="导出">  
						<a class="btn btn-warning" href="<literal>{:U(MODULE_NAME.'/</literal>{$TableName}<literal>/importExcel')}</literal>">导入</a>                                                                 
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                </div>
                <div class="box-body table-responsive">
                    <form method="post">
						<table id="table" class="table table-bordered table-hover dataTable">
						    <thead>
						        <tr>
						        	<if condition="count($listFieldArr) AND is_array($listFieldArr)">
						        		<volist name="listFieldArr" id="vvo">
											<volist name="tableInfoArray" id="tableInfo"> 
													<if condition="$tableInfo[$columnNameKey] eq $vvo">
														<th>
															<if condition="count($fieldAliasArr) AND isset($fieldAliasArr[$tableInfo[$columnNameKey]]) AND ($fieldAliasArr[$tableInfo[$columnNameKey]] neq '')">
								                                 {$fieldAliasArr[$tableInfo[$columnNameKey]]}
															<else/>
																<if condition="$tableInfo['column_comment'] neq ''">
											                           {$tableInfo[column_comment]}
																<else/>
											                          {$tableInfo[$columnNameKey]}
															    </if>		                    
														    </if>							
													    </th>
													</if>              
											</volist>
									    </volist>
									</if>																	
								    <td>操作</td>            
						        </tr>
						    </thead>
						    <tbody>
								<literal>
									<volist name="</literal>{$tableName}<literal>List" id="vo">
								</literal>
									<tr>
							        	<if condition="count($listFieldArr) AND is_array($listFieldArr)">
							        		<volist name="listFieldArr" id="vvo">
												<volist name="tableInfoArray" id="tableInfo"> 
														<if condition="$tableInfo[$columnNameKey] eq $vvo">
								                           <td>
								                                <if condition="isset($formFieldArr[$tableInfo[$columnNameKey]])">
									                                 <if condition="isset($formFieldArr[$tableInfo[$columnNameKey]]['inType']) && $formFieldArr[$tableInfo[$columnNameKey]]['inType']=='select'">
				                                                          <literal>{$vo['</literal>{$tableInfo[$columnNameKey]}']|func_select_data_checkedval='{$moduleName}','{$TableName}','{$tableInfo[$columnNameKey]}',###}
									                                 <elseif condition="isset($formFieldArr[$tableInfo[$columnNameKey]]['inType']) && $formFieldArr[$tableInfo[$columnNameKey]]['inType']=='radio'" />
				                                                          <literal>{$vo['</literal>{$tableInfo[$columnNameKey]}']|func_select_data_checkedval='{$moduleName}','{$TableName}','{$tableInfo[$columnNameKey]}',###}		                                                          
									                                 <elseif condition="isset($formFieldArr[$tableInfo[$columnNameKey]]['inType']) && $formFieldArr[$tableInfo[$columnNameKey]]['inType']=='datetime'" />
				                                                          <eq name="formFieldArr[$tableInfo[$columnNameKey]]['dataType']" value="int">
                                                                               <literal>{$vo['</literal>{$tableInfo[$columnNameKey]}']|date='Y-m-d H:i:s',###}
                                                                          <else/>
                                                                               <literal>{$vo['</literal>{$tableInfo[$columnNameKey]}']}
				                                                          </eq>										                                
									                                 <elseif condition="isset($formFieldArr[$tableInfo[$columnNameKey]]['inType']) && $formFieldArr[$tableInfo[$columnNameKey]]['inType']=='file'"/>
		                                                                   <literal>
			                                                                   	<if condition="$vo['</literal>{$tableInfo[$columnNameKey]}<literal>'] neq ''">
			                                                                       <img width="50px" src="{$vo['</literal>{$tableInfo[$columnNameKey]}']}<literal>"/>
			                                                                    </if>
		                                                                   </literal>
									                                 <else/>
								                                          <literal>{$vo.</literal>{$tableInfo[$columnNameKey]}}
									                                 </if>                                                          
				                                                <else/>
								                                     <literal>{$vo.</literal>{$tableInfo[$columnNameKey]}}
								                                </if>
							                                </td>
														</if>              
												</volist>
										    </volist>
										</if>	
										<td>
											<a class="btn btn-warning btn-mini" role="button" href="<literal>{:U(MODULE_NAME.'/</literal>{$TableName}<literal>/edit/id/'.$vo[</literal>{$primaryKey}<literal>])}</literal>">编辑</a> 
											<a class="btn btn-danger btn_ajax btn-mini" role="button" href="<literal>{:U(MODULE_NAME.'/</literal>{$TableName}<literal>/delete/id/'.$vo[</literal>{$primaryKey}<literal>])}</literal>">删除</a>
										</td>
									<tr>
								<literal>
									</volist>
								</literal>

						    </tbody>
						</table>

						<div class="row">
						    <literal>{$page}</literal>
						</div>
                    </form>
                </div><!-- /.box-body -->

                <div class="overlay hide"></div><div class="loading-img hide"></div>
            </div><!-- /.box -->

        </div>
    </div>